package com.iwuke.dance.career;

import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.iwuke.dance.R;
import com.iwuke.dance.activity.BaseActivity;
import com.iwuke.dance.gadget_view.DefaultView;
import com.iwuke.dance.util.merchants_connect.NetworkEvent;

import de.greenrobot.event.Subscribe;
import de.greenrobot.event.ThreadMode;

/**
 * @author: 魏从响
 * @date: 2025/10/18
 * 生涯搜索
 */
public class CareerSearchActivity extends BaseActivity implements View.OnClickListener {


    private DefaultView default_view;
    private ImageView img_left;
    private EditText et_search_box;
    private ImageView img_search;
    private TextView tv_right_search;

    /**
     * @description 网络实时监听
     */
    @Subscribe(threadMode = ThreadMode.MainThread)
    public void onEvent(NetworkEvent networkEvent) {
        BaseActivity.setConnect(CareerSearchActivity.this, networkEvent, null);

    }

    @Override
    protected int getView() {
        return R.layout.activity_career_search;
    }

    @Override
    protected void init(View mView) {

        //返回
        img_left = findViewById(R.id.img_left);
        //搜索框
        et_search_box = findViewById(R.id.et_search_box);
        //搜索按钮
        img_search = findViewById(R.id.img_search);
        tv_right_search = findViewById(R.id.tv_right_search);

        //默认页
        default_view = findViewById(R.id.default_view);
        default_view.setTextView("暂无生涯信息哦~");



        //返回
        img_left.setOnClickListener(this);
        //搜索按钮
        img_search.setOnClickListener(this);
        tv_right_search.setOnClickListener(this);

    }

    @Override
    protected void initData() {

    }

    @Override
    public void onClick(View v) {
        if (v.getId()==R.id.img_left){//返回
            finish();
        }else if (v.getId()==R.id.img_search||v.getId()==R.id.tv_right_search){//搜索按钮
            //调用接口

        }
    }
}
